﻿#if UNITY_EDITOR
using UnityEditor;
/// <summary>
/// 编辑器菜单_AssetBundle菜单
/// </summary>
public partial class ESF_MenuItem_AssetBundle : AbsESF_EditorMenuItem
{
    #region 常量
    /// <summary>
    /// 菜单名称
    /// </summary>
    const string mcDevMenuName = "AssetBundle/";
    /// <summary>
    /// 菜单
    /// </summary>
    const string mcDevMenuRoot = cDevMenuRootPath + mcDevMenuName;
    /// <summary>
    /// Asset菜单
    /// </summary>
    const string mcDevAssetMenu = cDevMenuAssetPath + mcDevMenuName;
    /// <summary>
    /// Hierarchy菜单
    /// </summary>
    const string mcDevHierarchy = cDevMenuHierarchyPath + mcDevMenuName;
    /// <summary>
    /// 菜单优先级
    /// </summary>
    const int mcPriority = 100 * ESF_MenuPriorityConst.AssetBundle;
    #endregion

    #region Set AssetBundleSchema
    const string mcSetAssetBundleSchema = "Set AssetBundleSchema";
    /// <summary>
    /// 设置AssetBundle资源包
    /// </summary>
    [MenuItem(mcDevMenuRoot + mcSetAssetBundleSchema, false, mcPriority)]
    [MenuItem(mcDevAssetMenu + mcSetAssetBundleSchema, false, mcPriority)]
    [MenuItem(mcDevHierarchy + mcSetAssetBundleSchema, false, mcPriority)]
    internal static void ESF_MenuItem_SetAssetBundleSchema()
    {
        EditorWindowSetAssetBundleSchema window = EditorWindow.GetWindow<EditorWindowSetAssetBundleSchema>();
        window.Show();
    }
    #endregion

    #region Build AssetBundle
    const string mcBuildAssetBundle = "Build AssetBundle";
    /// <summary>
    /// 设置AssetBundle资源包
    /// </summary>
    [MenuItem(mcDevMenuRoot + mcBuildAssetBundle, false, mcPriority)]
    [MenuItem(mcDevAssetMenu + mcBuildAssetBundle, false, mcPriority)]
    [MenuItem(mcDevHierarchy + mcBuildAssetBundle, false, mcPriority)]
    [ESF_ProjectSettingMenuItem(mcDevMenuRoot + mcBuildAssetBundle,"生成AssetBundle资源包")]
    static void ESF_MenuItem_BuildAssetBundle()
    {
        EditorWindowBuildAssetBundle window = EditorWindow.GetWindow<EditorWindowBuildAssetBundle>();
        window.Show();        
    }
    #endregion
}
#endif


